<div class="searchContainer" style="">
<form action="" method="post" enctype="multipart/form-data" style="margin:0px; padding:0px;">
        Search:
        <input type="text" name="searchName" value="" size="35" autocomplete="off" placeholder="First Name, Last Name or Email" required />
        <input type="submit" name="Submit_g" id="search" value="Search" />
</form>
</div>
<table border='1' style='width: 90%'>
    <tr>
        <th>Id</th>
        <th>User Name</th>
        <th>Email</th>
        <th>First Name</th>
        <th>Last Name</th>
        <th>Phone</th>
        <th>Address</th>
        <th>Branch</th>
        <th>Date Hired</th>
        <th>Date Registered</th>
        <th>Status</th>
        <th>Note</th>
    </td>
<?php
foreach($agents as $agent)
{
  echo'<tr>';
    echo'<td>'.$agent['id'].'</td>';
    echo'<td>'.$agent['username'].'</td>';
    echo'<td>'.$agent['email'].'</td>';
    echo'<td>'.$agent['first_name'].'</td>';
    echo'<td>'.$agent['last_name'].'</td>';
    echo'<td>'.$agent['phone'].'</td>';
    echo'<td>'.$agent['address'].'</td>';
    echo'<td>'.$agent['branch'].'</td>';
    echo'<td>'.$this->date->format($agent['date_hired']).'</td>';
    echo'<td>'.$this->date->format($agent['date_registered']).'</td>';
    echo'<td>'.$agent['status'].'</td>';
    echo'<td>'.$agent['note'].'</td>';
  echo'</tr>';  
}
?>
</table>
